package com.ruoyi.oa.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;
import java.util.List;

/**
 * 【请填写功能名称】业务对象 oa_purchase_apply
 *
 * @author ruoyi
 * @date 2023-03-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class OaPurchaseApplyBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotBlank(message = "主键ID不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 项目名称
     */
    @NotBlank(message = "项目名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectName;

    /**
     * 项目地点
     */
    @NotBlank(message = "项目地点不能为空", groups = { AddGroup.class, EditGroup.class })
    private String projectAddress;


    /**
     * 合计
     */
    private double total;

    /**
     * 大写
     */
    @NotBlank(message = "大写不能为空", groups = { AddGroup.class, EditGroup.class })
    private String capitalization;


    private List<OaPurchaseApplyListBo> purchaseApplyListBoList;

    /**
     * 采购金额：起
     */
    private String purchaseMoneyStart;

    /**
     * 采购金额：终
     */
    private String purchaseMoneyEnd;


    /**
     * 提交时间范围
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private List<Date> submitTimeList;

    /**
     * 提交时间 终
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitStartDate;

    /**
     * 提交时间起
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
    private Date submitEndDate;

    /**
     * 流程状态
     */
    private String status;

    private String createUser;

    /**
     * oss集合
     */
    private String attachment;
}
